;T3-2.ASM
; 计算16x+y
dseg segment
    xxx dw 1234h
    yyy dw 5678h
    zzz dd ?
dseg ends

cseg segment
    ;设置cs和ds段寄存器
    assume cs:cseg,ds:dseg
start: 
    mov ax,dseg
    mov ds,ax
    mov ax,xxx
    xor dx,dx
    add ax,ax
    adc ax,ax
    adc dx,dx
    add ax,ax
    adc dx,dx
    add ax,ax
    adc dx,dx

    add ax,yyy
    adc dx,0
    mov word ptr zzz,ax
    mov word ptr zzz+2,dx
    mov ax,4ch
    int 21h
cseg ends

end start